/*****************************************************************************
	File Name:			Player.cpp
	Authors:			Marc Willis, Trey Turley, Thomas Lee
	Description:		Defines functions for the Player class
	Date Modified:		08/01/10
						-File Created
*****************************************************************************/

#include "Player.h"

/*****************************************************************************
	Function Name:		Player()	Description:		Default constructor for the Player class, creates a
a player with default stats
	Output:
		(none)
*****************************************************************************/
Player::Player()
{
	x=0;
	y=0;
	color=1;
	dir=DIR_LEFT;
}
/*****************************************************************************
	Function Name:		Player(int,int,int,int)
	Description:		Constructor for the Player class, creates a Player
						with the given stats
	Input:
		int x			x of the player
		int y			y of the player
		int dir			direction of the player
		int color		color of the player
	Output:
		(none)
*****************************************************************************/
Player::Player(int x,int y,int dir,int color)
{
	this->x=x;
	this->y=y;
	this->dir=dir;
	this->color=color;
}
/*****************************************************************************
	Function Name:		getColor()
	Description:		Gets the color of the player  
	Input:
		(none)
	Output:
		int				the player's color
*****************************************************************************/
int Player::getColor()
{
	return color;
}
/*****************************************************************************
	Function Name:		getDir()
	Description:		Gets the direction of the player  
	Input:
		(none)
	Output:
		int				the player's direction
*****************************************************************************/
int Player::getDir()
{
	return dir;
}
/*****************************************************************************
	Function Name:		getX()
	Description:		Gets the x coordinate of the player  
	Input:
		(none)
	Output:
		int				the player's x
*****************************************************************************/
int Player::getX()
{
	return x;
}
/*****************************************************************************
	Function Name:		getY()
	Description:		Gets the y coordinate of the player  
	Input:
		(none)
	Output:
		int				the player's y
*****************************************************************************/
int Player::getY()
{
	return y;
}
/*****************************************************************************
	Function Name:		setX(int)
	Description:		Sets the x coordinate of the player  
	Input:
		int n			the player's new x
	Output:
		(none)
*****************************************************************************/
void Player::setX(int n)
{
	x=n;
}
/*****************************************************************************
	Function Name:		setY(int)
	Description:		Sets the y coordinate of the player  
	Input:
		int n			the player's new y
	Output:
		(none)
*****************************************************************************/
void Player::setY(int n)
{
	y=n;
}